package app

import (
	"github.com/gin-gonic/gin"
	"webhookadapter/app/controllers/ding_talk"
	"webhookadapter/app/controllers/wechat"
	"webhookadapter/internal"
)

func InitRouter(router *gin.Engine) {
	contextPath := internal.AppConfig.Server.ContextPath
	new(wechat.ControllerWechat).Router(router, contextPath)
	new(ding_talk.ControllerDingTalk).Router(router, contextPath)
}
